import { request } from '@/utils'

export default {
  getMidiList: (pageNo, pageSize, keyword) => {
    const params = {
      pageNo,
      pageSize,
    }
    if (keyword) {
      params.keyword = keyword
    }
    return request.get('/midi/list', { params })
  },

  deleteOne: (id) => request.delete(`/midi/${id}`),
}
